package controller

import (
	"admin-server/models"
	"github.com/gin-gonic/gin"
)

// 获取当前登录信息
func GetAccountInfo(ctx *gin.Context) models.Admin {
	info, _ := ctx.Get("account_info")

	return info.(models.Admin)
}
